package com.mf.service.authority;


import com.mf.domain.authority.RoleResourceRelation;
import com.mf.domain.general.tree.ZTree;
import com.mf.service.framework.IService;

import java.util.List;

/**
 * 角色资源关联信息Service层接口类
 * User: zhaoming
 * DateTime: 2016-07-15
 * To change this template use File | Settings | File Templates.
 **/
public interface RoleResourceRelationService extends IService<RoleResourceRelation> {

    /**
     * 新增角色资源映射
     * @param roleResourceRelation 角色资源映射Domain
     * @param resources 资源字符串
     */
    boolean insert(RoleResourceRelation roleResourceRelation, String resources);

    /**
     * 获取资源树
     * @param roleResourceRelation 角色资源关联信息Domain
     * @return 资源信息列表
     */
    List<ZTree> getResourceTree(RoleResourceRelation roleResourceRelation);
}
